from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from config import *
from info import *

# test
config_mode = DevelopmentConfig
app = creat_app(config_mode)
manage = Manager(app)
manage.add_command('c_db', MigrateCommand)
Migrate(app, db)

if __name__ == '__main__':
    manage.run()
